package org.dromara.business.domain.bo;

import org.dromara.business.domain.UserFollow;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 用户关注业务对象 t_user_follow
 *
 * @author Hao Tong Xue
 * @date 2025-04-03
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = UserFollow.class, reverseConvertGenerate = false)
public class UserFollowBo extends BaseEntity {

    /**
     * 关注关系 ID
     */
    @NotNull(message = "关注关系 ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 关注者的用户 ID
     */
//    @NotNull(message = "关注者的用户 ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long followerId;

    /**
     * 被关注者的用户 ID
     */
//    @NotNull(message = "被关注者的用户 ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long followingId;

    /**
     * 备注
     */
    private String remark;

    /**
     * 操作类型 1-关注 2-取消关注
     */
    @NotNull(message = "操作类型", groups = { AddGroup.class })
    private Integer operateType;

}
